package hn.cch.service.impl;

import hn.cch.service.JdbcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

@Service
public class JdbcServiceImpl implements JdbcService {

    @Autowired
    private JdbcTemplate jdbcTemplate;


    public String getVersion(){
        return jdbcTemplate.queryForObject("select version()", String.class);
    }




}
